<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:h="http://java.sun.com/jsf/html"
   template="/WEB-INF/templates/default.xhtml">
   <ui:define name="content">
      
      <h2>Random Chuck Norris Fact</h2>
      
      <h:form id="randomfact">
		<h:commandButton id="randomfactbutton"
		  action="#{chuckNorrisBean.getRandomFact}" value="Get Random Fact" />
		<h:outputText value="#{chuckNorrisBean.newFact.fact}"/>  
	      
      </h:form>
   </ui:define>
</ui:composition>
